<html>
    <head>
        <title>自我介绍</title>
        <body>
            <script>
                var iseven = function(x){
                    document.write(x);
                    return (x % 2 == 0) ? true : false
                }
                var numbers=[1,2,3,33,5,6,7,8,9,10]
                // numbers.every(iseven);
                // numbers.some(iseven);
                // numbers.forEach(function(x){
                //     console.log((x % 2 == 0)+"\n");
                // })

                // var myMap=numbers.map(iseven)
                // console.log(myMap)

                // var evenNumbers=numbers.filter(iseven)
                // console.log(evenNumbers)

                // var w=numbers.reduce(function(previous,current,index){
                //     return previous+current;  
                // })
                // console.log(w)

                console.log(numbers.sort())

                var a = numbers.sort(function(a,b){
                    return a-b
                })
                console.log(a)
            </script>
        </body>
    </head>
</html>